#!/usr/bin/env python
#-*- coding: utf-8 -*-

import ConfigParser
DEFAULT_CONFIG = "../crawler.cfg"
class configer:
    instance = None
    def __init__(self):
        self.reader = ConfigParser.ConfigParser()
        self.reader.read([DEFAULT_CONFIG])
    @staticmethod
    def getInstance():
        if configer.instance is None:
            configer.instance = configer()
        return configer.instance.reader

if __name__ == '__main__':
    print 'this module should not be run alone'
